package network;


public enum Status {
	ONLINE, OFFLINE;
	
	
	
	/**
	 * 
	 * @param st
	 * @return null if not a valid Status.
	 */
	public Status getStatus(String st){
		if(st.equalsIgnoreCase("online"))
			return ONLINE;
		else if(st.equalsIgnoreCase("offline"))
			return OFFLINE;
		else
			return null;
	}
}
